home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
prgtools
/
gnustuff
/
minix
/
libsrc~1.z
/
libsrc~1
/
getppid.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1989-12-28
|
392 b
|
22 lines
/*
EFTH Minix report #23 - July 1988 - POSIX getppid(2)
This is an implementation of getppid(2) - "get parent's
process id". Please consider this a public domain program.
*/
#include "lib.h"
#ifndef NIL_PTR
#define NIL_PTR ((void *) 0)
#endif
PUBLIC int getppid()
{
int p = callm1(MM, GETPID, 0, 0, 0, NIL_PTR, NIL_PTR, NIL_PTR);
if ( p < 0 ) return ( p );
return( M.m2_i1 );
}